import { createRouter, createWebHistory } from 'vue-router'
import LoginView from '../user/LoginView.vue'
import AppVue from '@/App.vue'
import RegisterView from '@/user/RegisterView'

const routes = [
  // {
  //   path: "/",
  //   name: "Login_View",
  //   redirect: "/login/"
  // },
  {
    path: "/login/",
    name: "LoginView",
    component: LoginView
  },
  {
    path: "/file/",
    name: "HomeView",
    component: AppVue
  },
  {
    path: "/register/",
    name: "Register",
    component: RegisterView
  }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router
